/*********************************************************
          File Name:10.6.cpp
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 15 Sep 2015 02:30:04 PM CST
**********************************************************/

#include <iostream>
#include <numeric>
#include <list>

using std::list;
using std::cout;
using std::endl;

int main()
{
        list<int> ls;

        std::fill_n(std::back_inserter(ls), 10, 0);

        for(const auto &x: ls)
                cout << x << " ";
        cout << endl;

        return 0;
}
